<template>
  <el-container class="innercontainer">
    <el-aside
      width="150px"
      style="text-align:center;"
    >
      <span>管理中心</span>
      <router-link to="/administrator/manage_section">
        <i class="el-icon-menu"> 科目管理</i>
      </router-link>
      <router-link to="/administrator/manage_thread">
        <i class="el-icon-setting"> 问题管理</i>
      </router-link>
    </el-aside>
    <el-main style="padding: 0px">
      <router-view></router-view>
      <!-- <div v-if=!flag style="text-align:left">
        <el-input v-model="form.sectionName" style="width:300px" placeholder="请输入内容"></el-input>
        <el-button @click="addsection" style="margin-left:40px;margin-right:20px" type="primary">添加科目<i class="el-icon-upload el-icon--right"></i></el-button>
        <el-button @click="deletesection" type="danger">删除科目<i class="el-icon-delete-solid"></i></el-button>
        <el-table
          class="table table-hover"
          style="table-layout:fixed;text-align:left;margin-top:20px"
          width="100%"
          :data="list"
        >
          <el-table-column label="编号" prop="sid"></el-table-column>
          <el-table-column label="科目名称" prop="sectionName"></el-table-column>
          <td style="text-align:right;color:#808080;font-size:10px">
            <i class="el-icon-view"></i>
            访问量：
          </td>
        </el-table>
      </div>
      <div v-if=flag>
        kkkk
      </div> -->
    </el-main>
  </el-container>
</template>

<script>
export default {
  name: 'Administrator',
  data () {
    return {
    }
  },
  methods: {
  }
}
</script>

<style lang = "less" scoped>
.innercontainer {
  position: absolute;
  right: 15%;
  left: 15%;
  width: 70%;
  height: 100%;
  background-color: #ffffff;
  .el-aside {
    display: block;
    background-color: #fafafa;
    border: 1px solid #e1e2e5;
    span {
      display: block;
      width: 100%;
      height: 49px;
      line-height: 49px;
      font-size: 28px;
      border-bottom: 1px solid #e1e2e5;
    }
    i {
      width: 100%;
      height: 40px;
      line-height: 40px;
      font-size: 18px;
    }
  }
  .el-main {
    border: 1px solid #e1e2e5;
  }
}
</style>
